package com.hunanwenli.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;


import java.util.Date;
@Accessors(chain = true)
@Setter
@ToString
@Getter
public class ShopGoods {
    private Long id;

    private Long uid;

    private String goodname;

    private Double goodprice;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date endtime;

    private Date createtime;

    private Integer goodstoke;

    private Long version;

    private String goodPicture;

    public Long getId() {
        return id;
    }

    public Long getUid() {
        return uid;
    }

    public String getGoodname() {
        return goodname;
    }

    public Double getGoodprice() {
        return goodprice;
    }

    public Date getEndtime() {
        return endtime;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public Integer getGoodstoke() {
        return goodstoke;
    }

    public Long getVersion() {
        return version;
    }

    public String getGoodPicture() {
        return goodPicture;
    }
}